package com.guodu.service;

import java.util.List;

import com.guodu.entity.UserInfo;
import com.guodu.vo.UserInfoQueryVo;
import com.guodu.vo.UserInfoVo;

public interface UserInfoService {
	UserInfo findByLoginName(String loginName);
	UserInfo findById(Long id);
	public int checkUnitsId(Long unitsId);
	boolean checkRole(String unitsId);
	public int findSizeByVo(UserInfoQueryVo userInfoQueryVo);
	public List<UserInfoVo> findByVo(UserInfoQueryVo userInfoQueryVo,
			int curPage, int pageSize);
	public int checkLoginName(String loginName);
	
	public void save(UserInfo userInfo);
	public void update(UserInfo userInfo);
}
